FROM python:latest

WORKDIR /fastapi

COPY requirements.txt .

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1


RUN apt-get update
RUN apt-get -y install \
    tesseract-ocr \
    tesseract-ocr-jpn \
    libgl1-mesa-dev
RUN pip install -r requirements.txt

COPY . /fastapi
#
#EXPOSE 8000
#
#CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0"]